<?php

use think\facade\Route;

// 应用路由
Route::group('app', function () {
    Route::get('mplive/room/select', 'admin.app.mplive.Room/select');
    Route::group(function () {
        // 小程序直播
        Route::get('mplive/room/sync', 'admin.app.mplive.Room/sync');
        Route::get('mplive/room/pushUrl/:id', 'admin.app.mplive.Room/pushUrl');
        Route::get('mplive/room/playback/:id', 'admin.app.mplive.Room/playback');
        Route::get('mplive/room/qrcode/:id', 'admin.app.mplive.Room/qrcode');
        Route::resource('mplive/room', 'admin.app.mplive.Room');

        Route::post('mplive/goods/audit/:id', 'admin.app.mplive.Goods/audit');
        Route::get('mplive/goods/status/:id', 'admin.app.mplive.Goods/status');
        Route::resource('mplive/goods', 'admin.app.mplive.Goods');
    })->middleware('check_rule', 'admin');
});
